<!DOCTYPE html>

<html xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">


<h:head>



</h:head>

<h:body>

	<ui:composition>



		<h:form id="left_menu_form">

			<p:panelMenu>
				<p:submenu label="Gestione Pacchetti">
					<p:menuitem value="Visualizza Tutti" action="list_packet"
						icon="ui-icon-note" />
					<p:menuitem value="Crea Nuovo" action="new_packet"
						icon="ui-icon-plus" />
				</p:submenu>
				<p:submenu label="Gestione Servizi Base">
					<p:menuitem value="Visualizza tutti" action="list_sb"
						icon="ui-icon-note" />
					<p:menuitem value="Crea nuovo" action="new_sb" icon="ui-icon-plus" />

				</p:submenu>

			</p:panelMenu>

		</h:form>
		<h:form id="packet_via_ID">
			<p:panelGrid columns="1" style="min-width: 100%; margin-top: 10px">
				<f:facet name="header"> Cerca pacchetto per ID </f:facet>

				<p:inputText binding="#{id}" required="true" id="packet_search_ID"
					style="min-width: 95%; margin: 0 auto"
					requiredMessage="Inserisci id del pacchetto" />
				<p:message for="packet_search_ID" />


				<f:facet name="footer">
					<p:commandButton value="Cerca Via id" icon="ui-icon-search" update="packet_via_ID"
						action="#{pacchettoBean.cercaPacchettoViaID(id.value)}">
					</p:commandButton>
				</f:facet>

			</p:panelGrid>

		</h:form>






	</ui:composition>

</h:body>
</html>